package cn.wolfcode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@TableName("t_employee")  //指定该类映射的表(名)
public class Employee2 {

    @TableId(value="id", type= IdType.AUTO)  //使用数据库自增id
    private Long id;

    @TableField("name")   //指定该字段映射表name这列
    private String name1;
    private String password;
    private String email;
    private int age;
    private int admin;
    private Long deptId;

    @TableField(exist = false)  //表示当前属性不参与列映射
    private String gender;  //表中没有对应这列
}
